package java67_18;

public class GernateEx {
	// 方便,用static
	public static void go() throws Exception {
		// int a = 4 / 0;
		throw new Exception("我的异常");
	}

	public static void main(String[] args) {

		try {
			go();
		} catch (Exception e) {
			System.out.println("捕捉到了我的异常!");
			e.printStackTrace();
		}
	}

}
